package com.example.swagger.controller;

import com.example.swagger.entity.User;
import io.swagger.models.Response;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: spring-agent
 * @description:
 * @author: zt22328 赵儒定
 * @create: 2023-04-25 13:26
 **/
@RestController
public class SwaggerController {

    @PostMapping("getUser")
    public User getUser(@RequestBody User user) {
        return new User("zhangs", 20);
    }

}
